package com.socct.test2


import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import kotlinx.android.synthetic.main.fragment_test_fragment3.view.*

/**
 * A simple [Fragment] subclass.
 */
class TestFragment3 : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // Inflate the layout for this fragment
        var view = inflater.inflate(R.layout.fragment_test_fragment3, container, false)
        initView(view)
        return view
    }

    private fun initView(view: View?) {
        view?.let {
            it.btn.setOnClickListener {
                findNavController().navigate(R.id.action_fragment3_to_fragment4)
            }
        }
    }


}
